//
//  FullScreenControlPanel.h
//  LabanBrowser
//
//  Created by hoangtx on 4/8/13.
//  Copyright (c) 2013 VNG. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol FullScreenControlPanelDelegate <NSObject>

@optional
-(void)onFullScreenPressDoneButton;
-(void)onFullScreenPressOpenRecentClosedTabsButton;
-(void)onFullScreenPressAddNewTabButton;
-(void)onFullScreenPressAddressButton;
-(void)onFullScreenPressMultiTabButton;

@end

@class SGPageViewController;
@interface FullScreenControlPanel : UIView
@property (weak, nonatomic) IBOutlet UIButton *backBT;
@property (weak, nonatomic) IBOutlet UIImageView *backIMV;
@property (weak, nonatomic) IBOutlet UIButton *forwardBT;
@property (weak, nonatomic) IBOutlet UIImageView *forwardIMV;
@property (weak, nonatomic) IBOutlet UIButton *unFullScreenBT;
@property (weak, nonatomic) IBOutlet UIImageView *multiTabIMV;
@property (weak, nonatomic) IBOutlet UIButton *multiTabBT;
@property (weak, nonatomic) IBOutlet UIImageView *unFullScreenIMV;
@property (weak, nonatomic) IBOutlet UIButton *addressBT;
@property (weak, nonatomic) IBOutlet UIImageView *addressIMV;
@property (nonatomic) id<FullScreenControlPanelDelegate> delegate;
@property (weak, nonatomic) SGPageViewController *browser;
- (IBAction)backAction:(id)sender;
- (IBAction)forwardAction:(id)sender;
- (IBAction)unFullScreenAction:(id)sender;
- (IBAction)multiTabAction:(id)sender;
- (IBAction)adressAction:(id)sender;


-(void)initializeWithBrowser:(SGPageViewController*)_mainBrowser;
-(void)needToShow:(BOOL)_need;
-(void)updateBackState:(BOOL)_backState AndForwardState:(BOOL)_forwardState;
-(void)updateChrome;
-(void)swapState;

-(void)updateForwardButtonBasedOnUrlStack:(BOOL)_stackIsEmpty;
@end
